package com.kingdee.eas.custom.mjeai.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.custom.mjeai.StockBillCollection;



public abstract class AbstractForBOSSFacadeControllerBean extends AbstractBizControllerBean implements ForBOSSFacadeController
{
    protected AbstractForBOSSFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("4E679DED");
    }

    public String importOutStockBills(Context ctx, StockBillCollection bills) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("9fcb76fb-6bb4-485c-9ae4-ab7dd47a1be1"), new Object[]{ctx, bills});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_importOutStockBills(ctx, bills);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _importOutStockBills(Context ctx, IObjectCollection bills) throws BOSException
    {    	
        return null;
    }

    public boolean deleteOutStockBill(Context ctx, String entryId) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("63749ca5-9917-4b8a-bb1b-2d7f8a08e37a"), new Object[]{ctx, entryId});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_deleteOutStockBill(ctx, entryId);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _deleteOutStockBill(Context ctx, String entryId) throws BOSException
    {    	
        return false;
    }

}